-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LogData nullable spanId, traceId #3745
LogData nullable spanId, traceId #3745
Conversation
} | ||
|
||
@Test | ||
void toProtoLogRecord_MinimalFields() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails without the updates to the marshaler.
Codecov Report
@@ Coverage Diff @@
## main #3745 +/- ##
============================================
+ Coverage 89.18% 89.30% +0.11%
- Complexity 3870 3875 +5
============================================
Files 463 463
Lines 12125 12123 -2
Branches 1188 1188
============================================
+ Hits 10814 10826 +12
+ Misses 916 908 -8
+ Partials 395 389 -6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏽
Was working on a prototype Log4j2 appender, and noticed that protobuf marshaling fails if spanId / traceId are left to their default blank values.
I've updated
LogData
to reflect that spanId and traceId are optional, and updated the marshaler to work with nullable values.Will likely to make other fields on
LogData
nullable as well.